how to factor a quadratic with three terms using diamond methods